﻿using DFGK_WMS.IRepository;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace DFGK_WMS.WebAPI.Controllers.物料管理
{
    /// <summary>
    /// 
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ConfmaterialController : ControllerBase
    {
        private readonly IConf_materialRepository conf_MaterialRepository;

        public ConfmaterialController(IConf_materialRepository conf_MaterialRepository)
        {
            this.conf_MaterialRepository = conf_MaterialRepository;
        }

        /// <summary>
        /// 西安物料接口
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public IActionResult GetCeshi()
        {
            return Ok(conf_MaterialRepository.GetConf_materialList());
        }
    }
}
